package org.rbac.vo;

import org.json.JSONObject;
/**
 * 
*  <pre>    
* 类名称：ActionReturn 
* 类描述：   返回
* 创建人：陈国祥   (kingschan)
* 创建时间：2014-9-24 下午3:47:21   
* 修改人：Administrator   
* 修改时间：2014-9-24 下午3:47:21   
* 修改备注：   
* @version V1.0
* </pre>
 */
public class ActionReturn {

    public ActionReturn(){}
    public ActionReturn(Boolean _status,String _msg){
        this.status=_status;
        this.msg=_msg;
    }
    
    private Boolean status;
    private String msg;

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        JSONObject json = new JSONObject();
        try {
            json.put("status", this.status);
            json.put("msg", this.msg);
        } catch (Exception e) {
            e.printStackTrace();
        }
       return json.toString();
    }
}
